package com.medical.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.medical.admin.domain.vo.BaseEntityVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: Medical
 * @BelongsPackage: com.medical.consult.domain
 * @Author: LX
 * @CreateTime: 2025-02-26  20:05
 * @Description: TODO
 * @Version: 1.0
 */

@Data
@TableName("t_consult")
public class Consult extends BaseEntityVO {

    /**
     * 咨讯id
     */
    @TableId(type = IdType.AUTO)
    private Integer consultId;
    /**
     * 咨询标题
     */
    private String consultTitle;
    /**
     * 咨询封面图
     */
    private String consultImgs;
    /**
     * 发布人
     */
    private String publisher;
    /**
     * 发布时间
     */
    @TableField(exist = false)
    private String releaseTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 咨询内容
     */
    private String content;


}
